import { save } from '../../api/resource'
const state = {

}
const mutations = {

}

const actions = {
  save({ commit }, houseResources) {
    console.log(houseResources)
    return new Promise((resolve, reject) => {
      save(houseResources).then(response => {
        resolve()
      }).catch(error => {
        reject(error)
      })
    })
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
